package cn.xiaopengstack.domain.agent.service.execute;

import cn.xiaopengstack.domain.agent.model.entity.ExecuteCommandEntity;
import org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter;

/**
 * @author jiangyangang
 */
public interface IExecuteStrategy {
    /**
     * 执行
     * @param executeCommandEntity
     * @param emitter
     */
    void execute(ExecuteCommandEntity executeCommandEntity, ResponseBodyEmitter emitter) throws Exception;
}
